/*
 * DESCRIPTION
 * The strpbrk() function locates the first occurrence in the string s of any of the characters in the string accept.
 * RETURN VALUE
 * The  strpbrk()  function  returns  a  pointer  to the character in s that matches one of the characters in accept, or NULL if no such character is
 * found.
 */

#include <stdio.h>
#include <string.h>

int main(int argc, char *argv[])
{
    char *q = "123,4:5;";
    while (q != NULL) {
    q = strpbrk(q, " ,:;");
    printf("q = %s\n", q);
    if ( q++ == NULL )
        break;
    }

    return 0;
}
